package day004;

public class MethodDemo01 {
    public static void main(String[] args) {
        System.out.println(sum(10, 20));

        double a = 10.1;
        double b = 20.2;
        System.out.println(sum(a, b));

        System.out.println(sum(1, 2, 3));

    }

    public static int sum(int a, int b) {
        return a + b;
    }

    public static double sum(double a, double b) {
        return a + b;
    }

    public static int sum(int a, int b, int c) {
        return a + b + c;
    }
}
